< previous page page_62 next page >

Page 62
Puzzle 14
Registry Games, Part 4
Only one task remains in our registry projectreading data from the registry. The program has been modified so that the data will be displayed in a label control when you click on the list box containing the registry value names as shown in Figure P14-1.
0062-01.gif
Figure P14-1:
The Reg4.vbp application in action
The List2_Click event opens a key using the key name from the List1 listbox, then calls the DisplayValue function to display the value of the data, as shown below:
Private Sub List2_Click()
   Dim thiskey As String
   Dim KeyToCheck As Long
   Dim res As Long

   lblValue.Caption = ""  ' Clear label

 
< previous page page_62 next page >